projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9640bfb
)
build: Disable g_assert in release builds
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 20 Mar 2021 01:56:48 +0000
(21:56 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 21 Mar 2021 20:05:10 +0000
(16:05 -0400)
The ngl renderer is heavily using g_assert, and it
is written with the assumption that these assertions
will be compiled out in release builds.
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index 5e505a9b945f583ca52258d186f5042b4f87e46f..fd2cea9a1385e60e7b3713722fa6a0636fa7d688 100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-66,7
+66,7
@@
if debug
gtk_debug_cflags += '-DG_ENABLE_CONSISTENCY_CHECKS'
endif
elif optimization in ['2', '3', 's']
- gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS'
+ gtk_debug_cflags += '-DG_DISABLE_CAST_CHECKS
-DG_DISABLE_ASSERT
'
endif
add_project_arguments(gtk_debug_cflags, language: 'c')